package com.head.firtst.ch3;

/**
 * 咖啡装饰者
 * @author guohuixin
 * @date 2018/8/25
 */
public class SugerDecotator extends CondimentDecorator {
    Beverage beverage;
    public SugerDecotator(Beverage beverage) {
        this.beverage = beverage;
    }
    @Override
    public String getDescription() {
        return null;
    }

    @Override
    public double cost() {
        return 0.1 + beverage.cost();
    }
}
